package com.hfxt.entity;

import java.io.Serializable;
import java.util.Date;

public class Uses implements Serializable {

    private Integer userid;
    private String username;
    private String password;
    private String photo;
    private Integer money;
    private Date createTime;

    //uses  ---role  是多对一的关系
    //private Integer roleid;

    private  Role role;

    public Uses() {
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

//    public Integer getRoleid() {
//        return roleid;
//    }
//
//    public void setRoleid(Integer roleid) {
//        this.roleid = roleid;
//    }
}
